package com.ruoyi.product.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品库存录入记录对象 mall_product_stock_log
 * 
 * @author ruoyi
 * @date 2025-08-11
 */
public class MallProductStockLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 商品 */
    @Excel(name = "商品")
    private String productId;

    /** 商品SKU */
    @Excel(name = "商品SKU")
    private String productSkuId;

    /** 录入库存数量 */
    @Excel(name = "录入库存数量")
    private Long stockNum;

    /** 乐观锁 */
    private Long revision;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setProductId(String productId) 
    {
        this.productId = productId;
    }

    public String getProductId() 
    {
        return productId;
    }

    public void setProductSkuId(String productSkuId) 
    {
        this.productSkuId = productSkuId;
    }

    public String getProductSkuId() 
    {
        return productSkuId;
    }

    public void setStockNum(Long stockNum) 
    {
        this.stockNum = stockNum;
    }

    public Long getStockNum() 
    {
        return stockNum;
    }

    public void setRevision(Long revision) 
    {
        this.revision = revision;
    }

    public Long getRevision() 
    {
        return revision;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("productSkuId", getProductSkuId())
            .append("stockNum", getStockNum())
            .append("revision", getRevision())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
